﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZDSoft.LMS.Domain;
using NHibernate.Criterion;

namespace ZDSoft.LMS.Service
{
    public interface IRoleService
    {
        void Create(Role entity);

        void Update(Role entity);

        Role Get(int ID);

        void Delete(int ID);

        void Delete(Role entity);

        IList<Role> GetAll();

        IList<Role> GetAll(IList<ICriterion> queryConditions);

        IList<Role> GetPaged(IList<ICriterion> queryConditions, IList<Order> orderList, int pageIndex, int pageSize, out int count);

        void Authorize(int id, string systemfunction);
    }
}
